package com.wise.mall.admin.service.ums;

import com.wise.mall.common.domain.response.Oauth2TokenDto;
import com.wise.mall.common.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("wmall-auth")
public interface AuthService {

    @PostMapping(value = "/oauth/token")
    Result<Oauth2TokenDto> postAccessToken(@RequestParam Map<String, String> parameters);
}
